package com.gs.mybatisflextest.model;


import com.alibaba.fastjson2.annotation.JSONField;
import com.mybatisflex.annotation.*;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@Table("TB_DEPT")
public class TbDept {

    @Id(keyType = KeyType.Generator,value= KeyGenerators.uuid)
    @ColumnAlias("tb_dept_id")
    private String id;
    private String deptName;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ColumnAlias("tb_dept_cd")
    private Date createTime;

    private String userId;




}
